//
// Created by tys on 2017/10/26.
//

#ifndef MYPLAYER_PLAY_H
#define MYPLAYER_PLAY_H


#include <jni.h>

/***ffmpeg 的初始化操作，压缩数据放入队列，启动音频，视频播放线程*/
int play_film(const char *url);


/***pause 停止生产，消费线程*/
void play_pause();

/**设置native window宽，高，格式*/
void init_native_window(JNIEnv *env, jobject surfaceView, jint w, jint h);

/**资源释放*/
void release();

#endif //MYPLAYER_PLAY_H
